<?php
	$kode = $_POST['kode'];
	$desa = $_POST['desa'];
	$kecamatan = $_POST['kecamatan'];
	$tgl = date("Y-m-d H:i:s");
	$sql="insert into desa (id_desa,desa,id_kecamatan,tanggal_input) values ('$kode','$desa','$kecamatan','$tgl')";
	echo $sql;
	$qry=mysql_query($sql);
	$url_sukses='utama.php?module=mod_desa';
	if($qry){
		echo "<meta http-equiv='refresh' content='0; url=$url_sukses'>";
		exit;
	}else{
		echo mysql_error();
	}
?>